Ssl: Copy the on-demand cert loading bool from default config
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sun, 17 Sep 2023 03:46:01 +0000 (04:46 +0100)
committerRaspbian forward porter <root@raspbian.org>
Sun, 17 Sep 2023 03:46:01 +0000 (04:46 +0100)
commit5c35f1115d03d63a63f5809ba01444a3287d6931
treebd22ce0ff24fb0c8c765937913efc60afe1ca11c
parentaf3fcd5553f2315d53babd3f0d2c68aa06b983c0
Ssl: Copy the on-demand cert loading bool from default config

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=57ba6260c0801055
Last-Update: 2023-06-08

Otherwise individual sockets will still load system certificates when
a chain doesn't match against the configured CA certificates.
That's not intended behavior, since specifically setting the CA
certificates means you don't want the system certificates to be used.

This is potentially a breaking change because now, if you ever add a
CA to the default config, it will disable loading system certificates
on demand for all sockets. And the only way to re-enable it is to
create a null-QSslConfiguration and set it as the new default.

Gbp-Pq: Name CVE-2023-34410.diff
src/network/ssl/qsslsocket.cpp